home *** CD-ROM | disk | FTP | other *** search
- Path: news.vol.it!news
- From: bizzetti@mbox.vol.it (Fabio Bizzetti)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Scrolling only selected bitplanes
- Date: 19 Mar 1996 23:07:28 GMT
- Organization: Video On Line
- Distribution: world
- Message-ID: <2628.6653T1T2571@mbox.vol.it>
- References: <314e1835@beachyhd.demon.co.uk>
- NNTP-Posting-Host: molcl9.vol.it
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >Hi all,
-
- >I'm wondering how to go about something..
-
- >I have an intuition screen open, on to which I'm directly rendering (using
- >its own rastport, not a window's rastport). This window can be any number of
- >bitplanes (2 to 8), but usually is 8.
-
- >I am currently drawing (using WritePixel()) and scrolling (using
- >ScrollRaster()). However, I want to be able to draw and scroll completely
- >*independently* of the final bitplane. So I draw and scroll planes 1 through
- >7, but plane 8 stays completely undisturbed.
-
- >This will allow me a basic parallax effect. As planes 1 - 7 scroll by, plane
- >8 stays behind, motionless.
-
- >However, I don't quite know how I can achieve this effect. Both WritePixel()
- >and ScrollRaster() both operate on *all* bitplanes in the Rastport. Is there
- >any way I can get these functions to leave the final plane completely alone?
-
- >If it's not possible, it's only really the scrolling that really must not
- >interact with the background. Is it possible for me to scroll 7 of the 8
- >planes using a function other than ScrollRast? Then I could use the blitter
- >to only scroll the seven planes, whilst the 8th is left alone.
-
- >Any help would be greatly appreciated!
-
- Sorry to say it, but this is a good example of reality about OS and direct
- hardware programming. And also if there's a way to do it with the OS, it'll
- be damn slower and expecially damn more innatural and complex than it has
- to be.
-
- What are the king of games?: consoles. Have you ever seen a console programmed
- through an OS such as Amiga's one?
-
-
- Sorry; I haven't been able to help you though.
-
-
- >.\dam. [Team AMIGA] //\ ad32@brighton.ac.uk \\/
-
-
-
-
- ------------------------------------------------------------------------------
- | |
- | Stop that fucking imperialist embargo against Cuba. |
- | Hasta Siempre Comandante Che Guevara. |
- | |
- | |
- | Fabio "Maverick" Bizzetti - bizzetti@mbox.vol.it - Maverick* at IRC |
- | The maker of "CyberMan" and "Virtual Karting" |
- | working on "Virtual Rally" and "StarFighter", the 3D game that will |
- | bring the Amiga to the top |
- | |
- ------------------------------------------------------------------------------
-
-
-